package com.indusfo.spc.service;

import com.indusfo.spc.pojo.Area;
import com.indusfo.spc.vo.JSONObject;

import java.util.List;

public interface AreaService {
    
    JSONObject selectArea(Area area);
    
    JSONObject updateArea(Area area);

    JSONObject insertArea(Area area);

    JSONObject definedArea(Long[] areaIds, Integer dataState);

    /**
     * 检查excel导入的字段
     * @param area
     * @return
     */
    String checkNoRepeatExcel(Area area);

    /**
     * 批量新增区域
     * @param areaList
     * @return
     */
    JSONObject updateListArea(List<Area> areaList);
}
